/*
 * Copyright (c) 2020-2099 the original author or authors. All rights reserve.
 */
package org.tianyun.cloud.data.redis.configuration;

/**
 * Redis缓存配置
 *
 * @auther ebert_chan
 */
public class RedisCacheProperties {

    /**
     * enabled cache annotation
     */
    private boolean enabledCache = Boolean.TRUE;

    /**
     * global business code。需要在响应码中配置：i18n.message.response.{tryLockBusinessCode} = 操作过于频繁，请稍后再试~
     */
    private String tryLockBusinessCode;

    public boolean isEnabledCache() {
        return enabledCache;
    }

    public void setEnabledCache(boolean enabledCache) {
        this.enabledCache = enabledCache;
    }

    public String getTryLockBusinessCode() {
        return tryLockBusinessCode;
    }

    public void setTryLockBusinessCode(String tryLockBusinessCode) {
        this.tryLockBusinessCode = tryLockBusinessCode;
    }

}
